package com.ywy.chat.vo;

import lombok.Data;

import java.util.Date;

/**
 * 聊天信息
 *
 * @author ywy
 * @date 2021/12/31 16:19
 */
@Data
public class ChatMessage {
    private String username;
    private String avatar;
    /**
     * 聊天窗口来源类型
     */
    private String type;
    private String content;
    private Integer cid;
    private Boolean mine;
    private Integer fromid;
    private Date timestamp;

    /**
     * 消息的来源id，如果是私聊则是用户id，如果是群聊则是群组id
     */
    private Integer id;
}
